package com.engine4cloud.tdf.supervision.dto.create;

import com.engine4cloud.tdf.supervision.dto.JzdxFileDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 帮扶申请
 *
 * @author wenjie
 * @date 2024-04-26 14:44:20
 */
@Data
@Schema(description = "帮扶申请")
public class SpHelpCreateDTO implements Serializable {

    /**
     * 矫正人员编号
     */
    @Schema(description = "矫正人员编号")
    @NotBlank(message = "矫正人员编号不能为空")
    private String rybh;

    /**
     * 帮扶时间
     */
    @Schema(description = "帮扶时间")
    @NotNull(message = "帮扶时间不能为空")
    private LocalDateTime bfsj;

    /**
     * 帮扶申请类型
     */
    @Schema(description = "帮扶申请类型", example = "01")
    @NotBlank(message = "帮扶申请类型不能为空")
    private String bfsqlx;

    /**
     * 帮扶申请理由
     */
    @Schema(description = "帮扶申请理由")
    @NotBlank(message = "帮扶申请理由不能为空")
    private String bfsqly;

    /**
     * 帮扶地点
     */
    @Schema(description = "帮扶地点")
    @NotBlank(message = "帮扶地点不能为空")
    private String bfdd;

    /**
     * 帮扶内容
     */
    @Schema(description = "帮扶内容")
    @NotBlank(message = "帮扶内容点不能为空")
    private String bfnr;

    /**
     * 记录人
     */
    @Schema(description = "记录人")
    @NotBlank(message = "记录人不能为空")
    private String jlr;

    /**
     * 记录时间
     */
    @Schema(description = "记录时间")
    @NotNull(message = "记录时间不能为空")
    private LocalDateTime jlsj;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String bz;

    /**
     * 教育帮扶地点
     */
    @Schema(description = "教育帮扶地点", example = "[\"460000\",\"46000A\",\"469006\",\"36327\"]")
    @NotEmpty(message = "教育帮扶地点不能为空")
    private List<String> areaList;

    /**
     * 文书材料
     */
    @Schema(description = "文书材料", example = """
            [{"name": "张三.png",
            "url": "/supervision/oss-file/oss/file?fileName=09468fc20f2544e28891a058858fdf58.jpeg"}
            ]""")
    private List<JzdxFileDTO> instrumentList;
}